
import 'package:flutter/material.dart';

///主题管理
class AppTheme {


  static ThemeData build(BuildContext context){
    final isDarkMode = Theme.of(context).brightness == Brightness.dark;
    Color textColor = isDarkMode ? Colors.white : const Color(0xFF191C20);
    return ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue,primary: Colors.blue),
        appBarTheme: Theme.of(context).appBarTheme.copyWith(
          elevation: 3, // 设置阴影的高度，数值越大阴影越明显
          backgroundColor: Colors.white,
          surfaceTintColor: Colors.transparent,
          shadowColor: Colors.black.withValues(alpha: 0.08),
          centerTitle: true,
          titleTextStyle: TextStyle(color: textColor,fontSize: 18,fontWeight: FontWeight.bold)
        )
    );
  }



}